home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / pc_board / fidopcb2.zip / FIDOPCB.TXT next >
Text File  |  1992-01-17  |  12KB  |  313 lines

  1.                                Running PCBoard
  2.                     in a FidoNet - Technology environment
  3.  
  4.                                      by
  5.  
  6.                                Michael Nelson
  7.  
  8.  
  9.         This file is intended to show you how to set up PCBoard to operate in 
  10. the FidoNet / RBBSNet environment.  The main programs being used are:
  11.  
  12.         InterMail, version 2.01 (Commercial program... but you can
  13.                 also use FrontDoor, as it operates in a smilar
  14.                 manner)
  15.  
  16.         PCBoard 14.5a /E3 (Commercial program)
  17.  
  18.         BNU 1.70 FOSSIL Driver (BNU170.ZIP)
  19.  
  20.         Squish 1.00 Tosser / Scanner / Packer
  21.  
  22.         MRen 2.50  Message renumbering utility (MREN250.ZIP)
  23.  
  24.         InterPCB 1.31  PCBoard <-> *.msg converter (IP131.ZIP)
  25.  
  26.         Once you have all those programs, you need batch files to tie it all 
  27. together.  With the method I use, InterMail is EXITING, rather than SHELLING 
  28. to run PCBoard.  This method uses minimum memory, since one batch file exits 
  29. to the next, each time passing the necessary information along to the next 
  30. batch file.  Examples are shown below.  Note that these batch files have been 
  31. simplified considerably, but DO contain all the steps required to run a 
  32. minimal setup.  Feel free to add "bells and whistles" you need to perform the 
  33. functions you need to get done.  Mine are much more elaborate than these, but 
  34. contain so many details that it would take me forever to explain it all.
  35.  
  36.         First is the main batch file that runs the mailer (InterMail).  I 
  37. call it RUNIM.BAT.  When a human caller connects, IM will exit with the 
  38. errorlevel you set up in IM's SETUP program.  Using a US Robotics Courier HST 
  39. modem, that setup screen looks like this:
  40.  
  41. ╒═════════ Errorlevels ╕
  42. │                      │
  43. │ 300             0    │
  44. │ 1200            0    │
  45. │ 1275            0    │
  46. │ 2400            102  │
  47. │ 4800            0    │
  48. │ 9600            101  │
  49. │ 19200           0    │
  50. │ 38400           0    │
  51. │ Received mail   70   │
  52. │ Create BAT.file Yes  │
  53. │                      │
  54. ╘══════════════════════╛
  55.  
  56.         I don't take inbound calls from 300 or 1200 bps modems, so I have the 
  57. errorlevel set at 0 for those.  If you want to take calls at those speeds, 
  58. set the errorlevels to 103 for 1200 and 104 for 300, and add the appropriate 
  59. lines to the RUNIM.BAT file below.
  60.  
  61. ======================================================================
  62.  
  63. @ECHO OFF
  64. REM RUNIM.BAT (MAIN BATCH FILE TO RUN INTERMAIL)
  65.  
  66. :LOOP
  67. CLS
  68. C:
  69. CD \IM
  70. BNU /C
  71. IM /NOEMS
  72.    IF ERRORLEVEL 102 GOTO BOARD
  73.    IF ERRORLEVEL 101 GOTO BOARD
  74.    IF ERRORLEVEL 90  MAINT
  75.    IF ERRORLEVEL 70 GOTO INMAIL
  76. GOTO END
  77.  
  78. :BOARD
  79. CLS
  80. DOBBS
  81.  
  82. :INMAIL
  83. CALL INMAIL
  84. GOTO LOOP
  85.  
  86. :END
  87.    ECHO THE BBS IS NOW DOWN
  88.    EXIT
  89.  
  90. ======================================================================
  91.  
  92.         So, if it is a human caller at 2400 bps connect speed, it will drop 
  93. to the :BOARD label in the batch file.  From there, it will clear the screen 
  94. and run the DoBBS.BAT file, which is created on exit by IM.  If the inbound 
  95. caller is at 2400, the DOBBS.BAT file will look like this:
  96.  
  97. ======================================================================
  98.  
  99. EXEBBS 2400 2 273
  100.  
  101. ======================================================================
  102.  
  103.         In this example, DOBBS.BAT will run the EXEBBS.BAT file, and it will 
  104. pass three parameters to it.  The first is the connect speed, the second is 
  105. the port number, and the third is the number of minutes to the next event.  
  106. In the case of an HST or MNP connect, there will be a fourth parameter, 
  107. "/ARQ", and if it is there, it will also be passed to EXEBBS.BAT.  EXEBBS.BAT 
  108. looks like this:
  109.  
  110. ======================================================================
  111.  
  112. @ECHO OFF
  113.  
  114. IF %4!==/NONE GOTO STD
  115. GOTO HST
  116.  
  117. :STD
  118. IF %1==2400 GOTO PCB24
  119. IF %1==1200 GOTO PCB12
  120. GOTO CONTINUE
  121.  
  122. :PCB24
  123. BOARD /C:3
  124.  
  125. :PCB12
  126. BOARD /C:2
  127.  
  128. :HST
  129. IF %1==14400    GOTO ARQ96
  130. IF %1==12000    GOTO ARQ96
  131. IF %1==9600     GOTO ARQ96
  132. IF %1==2400     GOTO ARQ24
  133. IF %1==1200     GOTO ARQ12
  134. GOTO CONTINUE
  135.  
  136. :ARQ96
  137. BOARD /C:5 /ERR
  138.  
  139. :ARQ24
  140. BOARD /C:3 /ERR
  141.  
  142. :ARQ12
  143. BOARD /C:2 /ERR
  144.  
  145. :CONTINUE
  146. CLS
  147. RUNIM
  148.  
  149. ======================================================================
  150.  
  151.         Assuming the incoming human caller is at 2400, and it is not an MNP 
  152. connect, the line that says "If %4!==! Goto STD" will cause it to go to the 
  153. :STD label in the batch file.  There, the "If %1==2400 Goto PCB24" line will 
  154. cause it to go to the :PCB24 label.  This causes it to run PCBoard's 
  155. BOARD.BAT file, and it will pass "/C:3" to BOARD.BAT as %1.  If this were 
  156. instead a 2400 /ARQ connect ( a 2400 MNP modem ), it would instead jump to 
  157. the :HST label, where the "If %1==2400 Goto ARQ24" line would force it to the 
  158. :ARQ24 label.  In this case, it would pass the parameters "/C:3 /ERR" to 
  159. BOARD.BAT as %1 and %2.
  160.  
  161.    BOARD.BAT looks like this:
  162.  
  163. ======================================================================
  164.  
  165. @ECHO OFF
  166. C:
  167. CD\PCB
  168. IF EXIST REMOTE.BAT RENAME REMOTE.BAT REMOTE.SYS
  169. IF EXIST EVENT.BAT RENAME EVENT.BAT EVENT.SYS
  170. IF EXIST DOOR.BAT DEL DOOR.BAT >NUL
  171. IF EXIST ENDPCB DEL ENDPCB >NUL
  172.  
  173. PCB145 %1 %2
  174.  
  175. IF EXIST REMOTE.BAT REMOTE
  176. IF EXIST DOOR.BAT DOOR
  177. IF EXIST EVENT.BAT EVENT
  178. IF EXIST ENDPCB. GOTO END
  179.  
  180. :END
  181. CLS
  182. IF EXIST ENDPCB DEL ENDPCB >NUL
  183. RUNIM
  184.  
  185. ======================================================================
  186.  
  187.         So, after the caller is done with PCBoard (PCB145.EXE for PCBoard 
  188. 14.5 beta) it will drop all the way down to the line that says "runim", and 
  189. the whole cycle starts over, ready for the next caller, with InterMail back 
  190. up.
  191.  
  192. ======================================================================
  193.  
  194.         Now we've gotta talk about processing EchoMail.  I use Squish, by 
  195. Scott Dudley.  When a mail bundle comes in from my hub, InterMail exits with 
  196. errorlevel 70, which forces it to the :INMAIL label in the RUNIM.BAT file.  
  197. This runs my INMAIL.BAT file, which looks like this:
  198.  
  199. ======================================================================
  200.  
  201. @ECHO OFF
  202. REM INMAIL.BAT
  203. CDD C:\IM\SQ
  204. IF EXIST SQUISH.LOG DEL SQUISH.LOG > NUL
  205. SQUISH IN OUT SQUASH
  206. CDD C:\IM
  207. AREAFIX EC
  208. IF EXIST C:\IM\FILES\*.TIC TICK
  209. CALL IPMAIL
  210. CDD C:\IM\SQ
  211. IF EXIST C:\IM\IPXP.BBS SQUISH OUT -FC:\IM\IPXP.BBS
  212. CDD C:\IM\SQ
  213. SQUISH LINK
  214.  
  215. ======================================================================
  216.  
  217.         So, Squish tosses the inbound packets to the *.msg format, and then 
  218. calls the IPMAIL.BAT file that runs InterPCB to convert the *.msgs to 
  219. PCBoard's message base format.  When it is done, it returns to the INMAIL.BAT 
  220. file and does the linking of the .msg files that are left after InterPCB 
  221. processing.  IPMAIL.BAT looks like this:
  222.  
  223. ======================================================================
  224.  
  225. @ECHO OFF
  226. REM IPMAIL.BAT
  227. C:
  228. CD\IM
  229. If exist IP.LOG DEL IP.LOG
  230. IP /I /E /S /W /N:BATPOWER      /F:E:\PCB\BATPOWER /P:E:\PCB\BATPOWER\BATPOWER
  231. IP /I /E /S /W /N:BAYFORSALE    /F:E:\PCB\BAY4SALE /P:E:\PCB\BAY4SALE\BAY4SALE
  232. IP /I /E /S /W /N:BOATING       /F:E:\PCB\BOATING  /P:E:\PCB\BOATING\BOATING
  233. IP /I /E /S /W /N:BNU           /F:E:\PCB\BNU      /P:E:\PCB\BNU\BNU
  234. IP /I /E /S /W /N:CFORSALE      /F:E:\PCB\CFORSALE /P:E:\PCB\CFORSALE\CFORSALE
  235. IP /I /E /S /W /N:COMM          /F:E:\PCB\COMM     /P:E:\PCB\COMM\COMM
  236. IP /I /E /S /W /N:COOKING       /F:E:\PCB\COOKING  /P:E:\PCB\COOKING\COOKING
  237. IP /I /E /S /W /N:C_ECHO        /F:E:\PCB\C_ECHO   /P:E:\PCB\C_ECHO\C_ECHO
  238. IP /I /E /S /W /N:C_PLUSPLUS    /F:E:\PCB\CPP      /P:E:\PCB\CPP\CPP
  239. IP /I /E /S /W /N:DESQVIEW      /F:E:\PCB\DESQVIEW /P:E:\PCB\DESQVIEW\DESQVIEW
  240. IP /I /E /S /W /N:DR_DEBUG      /F:E:\PCB\DR_DEBUG /P:E:\PCB\DR_DEBUG\DR_DEBUG
  241. IP /I /E /S /W /N:4DOS          /F:E:\PCB\F4DOS    /P:E:\PCB\F4DOS\F4DOS
  242. IP /I /E /S /W /N:FISHING       /F:E:\PCB\FISHING  /P:E:\PCB\FISHING\FISHING
  243. IP /I /E /S /W /N:HDCONF        /F:E:\PCB\HDCONF   /P:E:\PCB\HDCONF\HDCONF
  244. IP /I /E /S /W /N:HDSALE        /F:E:\PCB\HDSALE   /P:E:\PCB\HDSALE\HDSALE
  245. IP /I /E /S /W /N:HST_MODE      /F:E:\PCB\HST_MODE /P:E:\PCB\HST_MODE\HST_MODE
  246. IP /I /E /S /W /N:HUMOR         /F:E:\PCB\HUMOR    /P:E:\PCB\HUMOR\HUMOR
  247. IP /I /E /S /W /N:JOBS          /F:E:\PCB\JOBS     /P:E:\PCB\JOBS\JOBS
  248. IP /I /E /S /W /N:JOBS-NOW      /F:E:\PCB\JOBS-NOW /P:E:\PCB\JOBS-NOW\JOBS-NOW
  249. IP /I /E /S /W /N:KINKNET       /F:E:\PCB\KINKNET  /P:E:\PCB\KINKNET\KINKNET
  250. IP /I /E /S /W /N:LAN           /F:E:\PCB\LAN      /P:E:\PCB\LAN\LAN
  251. IP /I /E /S /W /N:LAW           /F:E:\PCB\LAW      /P:E:\PCB\LAW\LAW
  252. IP /I /E /S /W /N:LASERPUB      /F:E:\PCB\LASERPUB /P:E:\PCB\LASERPUB\LASERPUB
  253. IP /I /E /S /W /N:LONI          /F:E:\PCB\LONI     /P:E:\PCB\LONI\LONI
  254. IP /I /E /S /W /N:MUSIC         /F:E:\PCB\MUSIC    /P:E:\PCB\MUSIC\MUSIC
  255. IP /I /E /S /W /N:PERFECT       /F:E:\PCB\PERFECT  /P:E:\PCB\PERFECT\PERFECT
  256. IP /I /E /S /W /N:PIERCING      /F:E:\PCB\PIERCING /P:E:\PCB\PIERCING\PIERCING
  257. IP /I /E /S /W /N:RIDES         /F:E:\PCB\RIDES    /P:E:\PCB\RIDES\RIDES
  258. IP /I /E /S /W /N:SCIENCE       /F:E:\PCB\SCIENCE  /P:E:\PCB\SCIENCE\SCIENCE
  259. IP /I /E /S /W /N:SCUBA         /F:E:\PCB\SCUBA    /P:E:\PCB\SCUBA\SCUBA
  260. IP /I /E /S /W /N:SPORTS        /F:E:\PCB\SPORTS   /P:E:\PCB\SPORTS\SPORTS
  261. IP /I /E /S /W /N:STTNG         /F:E:\PCB\STTNG    /P:E:\PCB\STTNG\STTNG
  262. IP /I /E /S /W /N:TECH          /F:E:\PCB\TECH     /P:E:\PCB\TECH\TECH
  263. IP /I /E /S /W /N:TIELINES      /F:E:\PCB\TIELINES /P:E:\PCB\TIELINES\TIELINES
  264. IP /I /E /S /W /N:VAX           /F:E:\PCB\VAX      /P:E:\PCB\VAX\VAX
  265. IP /I /E /S /W /N:VENTURA       /F:E:\PCB\VENTURA  /P:E:\PCB\VENTURA\VENTURA
  266. IP /I /E /S /W /N:VIETNAMV      /F:E:\PCB\VIETNAMV /P:E:\PCB\VIETNAMV\VIETNAMV
  267. IP /I /E /S /W /N:ZMODEM        /F:E:\PCB\ZMODEM   /P:E:\PCB\ZMODEM\ZMODEM
  268.  
  269. =============================================================================
  270.  
  271.         When IPMAIL.BAT has finished importing the messages into PCBoard, it 
  272. returns to the RUNIM.BAT file, which brings InterMail up, ready for the next 
  273. incoming call.
  274.  
  275. ======================================================================
  276.  
  277.         I realize that there are many ways to accomplish what the files in 
  278. this archive do.  I put this file together to give people a SIMPLE, RELIABLE 
  279. method.  Please don't send me zipfiles containing various convoluted batch 
  280. files expecting me to troubleshoot them for you.  The two node setup I run at 
  281. SeaHunt has been extremely reliable using a slightly more complicated version 
  282. of this setup, and frankly, I am not interested in other methods when this 
  283. one has stood me in such good stead.
  284.  
  285.         I hope this file has been helpful to you in getting you up and 
  286. running with PCBoard in the FidoNet environment.  If it has, or if you have 
  287. suggestions on how to improve it, please send me NetMail at 1:125/20.  Flames 
  288. and complaints > NUL.
  289.  
  290.                             S e a H u n t   B B S
  291.                           San Francisco, California
  292.  
  293.                             Sysop: Michael Nelson
  294.  
  295.                               FidoNet 1:125/20
  296.                         RBBSNet 8:914/500 & 8:914/501
  297.                      DVNet DESQview File Support System
  298.  
  299.                  (415) 621-0473, to 14.4kbps HST/DS v.32bis
  300.                        (415) 621-0227, to 14.4kbps HST
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.